using mingw: http://www.mingw.org/

installed libpng and zlib from these links:

http://gnuwin32.sourceforge.net/downlinks/libpng.php
http://gnuwin32.sourceforge.net/downlinks/zlib.php

compiled with these commands:

gcc -o flipchannels.exe flipchannels.c -lpng13 -lzdll
gcc -o fixpng.exe fixpng.c -lzdll -lwsock32
